package com.bdqn.mapper.impl;

import com.bdqn.mapper.SysUserMapper;
import com.bdqn.pojo.SysUser;

import java.util.Collections;
import java.util.List;

public class SysUserMapperImpl implements SysUserMapper {
    /**
     * 根据账号和密码进行查询实现登录的功能
     *
     * @param account
     * @param password
     * @return
     */
    @Override
    public SysUser queryByAccountAndPwd(String account, String password) {
        return null;
    }

    /**
     * 根据角色名称、角色id查询总数据量
     *
     * @param realName
     * @param roleId
     * @return
     */
    @Override
    public int getUserCount(String realName, int roleId) {
        return 0;
    }

    /**
     * 分页查询
     *
     * @param realName
     * @param roleId
     * @param pageIndex
     * @param pageSize
     * @return
     */
    @Override
    public List<SysUser> getUserList(String realName, int roleId, int pageIndex, int pageSize) {
        return Collections.emptyList();
    }

    @Override
    public int getUserById(SysUser sysUser) {
        return 0;
    }

    @Override
    public int add(SysUser sysUser) {
        return 0;
    }

    /**
     * 通过Account获取用户
     *
     * @param account
     * @return
     * @throws Exception
     */
    @Override
    public SysUser selectByAccount(String account) throws Exception {
        return null;
    }
}
